package com.wangjiacai.utils.ali.tts.service;

import com.alibaba.nls.client.protocol.OutputFormatEnum;
import com.wangjiacai.utils.ali.tts.AliTtsPool;
import com.wangjiacai.utils.ali.tts.Voice;

import java.util.concurrent.CompletableFuture;

public interface TtsService {

    CompletableFuture<byte[]> getBytesByText(AliTtsPool aliTtsPool, String text) throws Exception;

    CompletableFuture<byte[]> getBytesByText(AliTtsPool aliTtsPool, OutputFormatEnum format, String text) throws Exception;

    CompletableFuture<byte[]> getBytesByText(AliTtsPool aliTtsPool, OutputFormatEnum format, Voice voice,String text) throws Exception;
}
